import sys
import S3DPath
from S3D import QtHelper
from S3D.Config import Config
from S3D.Tools.Sound.Deployer.MainWindow import MainWindow

class SoundsDeployerConfig(Config):
    VERSION = 7
    PATH    = "SoundsDeployer.config"

    def __init__(self):
        self.workspace = ""
        self.xboxList = []

def main():
    QtHelper.ensureSingleApp("SoundDeployer")

    config = SoundsDeployerConfig.load()
    wnd = MainWindow(config)
    res = QtHelper.qApp.exec_()
    config.save()
    sys.exit(res)

if __name__ == "__main__":
    main()
